-- GENERATED SPELL FOR [Aether Ray] --


function spell0_22181(pUnit, Event) --@Tail Swipe,n/a--
pUnit:FullCastSpellOnTarget(35333,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22181', 611, 1)
end

function Sorts_22181(pUnit, Event)
local choix_sorts_22181 = math.random(0, 0)
if choix_sorts_22181 == 0 then
pUnit:RegisterEvent('spell0_22181', 1, 1)
end
end

function mob22181_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22181', math.random(1500, 3000), 1)
end

function mob22181_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22181_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22181_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22181, 1, 'mob22181_Action')
RegisterUnitEvent(22181, 2, 'mob22181_Leave')
RegisterUnitEvent(22181, 3, 'mob22181_Kill')
RegisterUnitEvent(22181, 4, 'mob22181_Die')
